package com.xuecheng.swagger.controller;

import com.xuecheng.swagger.entity.Student;
import org.springframework.web.bind.annotation.*;

public interface HelloControllerApi {
    @GetMapping("hello")
    String hello();

    @GetMapping
    Student modifyStudentNum(@RequestParam("num") String num);

    @GetMapping("{name}")
    Student modifyStudentName(@PathVariable("name") String name);

    @PostMapping
    Student modifyStudent(@RequestBody Student student);

    @PutMapping("{id}")
    Student mofidyStudentBynNum(@PathVariable("id") String id, @RequestParam("name") String name, @RequestBody Student student);
}
